package homework_02;

public class home_02 {
    public static void main(String[] args) {
        int n=345,a,b,c,d;
        a=n/100;
        b=n%100/10;
        c=n%10;
        d=a+b+c;
        System.out.println(d);
    }
}
